<?php defined('SYSPATH') or die('No direct script access.');

class Pagination extends Pagination_Core {

    public $enabled = true;

    public function initialize($config = array()) {
        parent::initialize($config);
        if ($this->query_string) {
            $pageNumber = $_GET[$this->query_string];
        }
        else {
            $pageNumber = URI::instance()->segment($this->uri_segment);
        }
        $this->enabled = FALSE;
        if ($pageNumber) {
            $this->enabled = TRUE;
        }
    }
}
